package com.qy.service.impl;

import com.qy.dao.ClueMapper;
import com.qy.model.Clue;
import com.qy.model.Member;
import com.qy.service.ClueService;
import com.qy.base.core.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


/**
 * Created by zaq on 2018/07/10.
 */
@Service
@Transactional
public class ClueServiceImpl extends AbstractService<Clue> implements ClueService {
    @Resource
    private ClueMapper qyClueMapper;

    @Override
    public List<Map> selectMyClue(Clue clue) {
        return qyClueMapper.selectMyClue(clue);
    }

    @Override
    public List<Map> selectClueListByUserId(Member member) {
        return qyClueMapper.selectClueListByUserId(member);
    }

    @Override
    public List<Map> clueList(Clue clue) {
        return qyClueMapper.clueList(clue);
    }

    @Override
    public Clue seeClue(Integer id) {
        return qyClueMapper.seeClue(id);
    }

    @Override
    public void checkClue(Clue clue) {
        qyClueMapper.checkClue(clue);
    }

    @Override
    public List<Clue> selectClueById(Clue clue) {
        return qyClueMapper.selectClueById(clue);
    }
}
